package com.game.springbootstart.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 游戏表
 * </p>
 *
 * @author author
 * @since 2025-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("games")
@ApiModel(value="Games对象", description="游戏表")
@AllArgsConstructor
@Builder
@NoArgsConstructor
public class Games implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "游戏ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "游戏名称")
    private String name;

    @ApiModelProperty(value = "游戏分类ID")
    private Long categoryId;

    @ApiModelProperty(value = "游戏介绍")
    private String description;

    @ApiModelProperty(value = "游戏封面图片")
    private String imageUrl;

    @ApiModelProperty(value = "游戏发布时间")
    private LocalDate releaseDate;

    @ApiModelProperty(value = "开发商")
    private String developer;

    @ApiModelProperty(value = "支持的平台（PC, 手机等）")
    private String platform;

    @ApiModelProperty(value = "游戏状态")
    private String status;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

}
